import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';

import { AboutPage } from '../pages/about/about';
import { ContactPage } from '../pages/contact/contact';
import { HomePage } from '../pages/home/home';
import { TabsPage } from '../pages/tabs/tabs';
import { OpenurlPage } from '../pages/action/openurl/openurl';
import { OpenpdfPage } from '../pages/action/openpdf/openpdf';
import { GetbatterystatusPage } from '../pages/action/getbatterystatus/getbatterystatus';
import { OpenmapPage } from '../pages/action/openmap/openmap';
import { ScannerPage } from '../pages/action/scanner/scanner';
import { ChangelightPage } from '../pages/action/changelight/changelight';
import { TexttospeechPage } from '../pages/action/texttospeech/texttospeech';
import { PininputPage } from '../pages/action/pininput/pininput';
import { GetweatherPage } from '../pages/functionality/getweather/getweather';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { InAppBrowser } from '@ionic-native/in-app-browser';
import { BatteryStatus } from '@ionic-native/battery-status';
import { PdfViewerModule } from 'ng2-pdf-viewer';
import { BarcodeScanner } from '@ionic-native/barcode-scanner';
import { TextToSpeech } from '@ionic-native/text-to-speech';
import { RestProvider } from '../providers/rest/rest';
import { HttpModule } from '@angular/http';
import { PincodeInputModule } from  'ionic2-pincode-input';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import { Brightness } from '@ionic-native/brightness'
@NgModule({
    declarations: [
        MyApp,
        AboutPage,
        ContactPage,
        HomePage,
        OpenurlPage,
        OpenpdfPage,
        GetbatterystatusPage,
        OpenmapPage,
        ScannerPage,
        ChangelightPage,
        TexttospeechPage,
        GetweatherPage,
        PininputPage,
        TabsPage
    ],
    imports: [ BrowserModule, PdfViewerModule, HttpModule, IonicModule.forRoot(MyApp),PincodeInputModule,BrowserAnimationsModule ],
    bootstrap: [ IonicApp ],
    entryComponents: [
        MyApp,
        AboutPage,
        ContactPage,
        HomePage,
        OpenurlPage,
        OpenpdfPage,
        GetbatterystatusPage,
        OpenmapPage,
        ScannerPage,
        ChangelightPage,
        TexttospeechPage,
        GetweatherPage,
        PininputPage,
        TabsPage
    ],
    providers: [
        StatusBar,
        SplashScreen,
        { provide: ErrorHandler, useClass: IonicErrorHandler },
        InAppBrowser,
        BatteryStatus,
        BarcodeScanner,
        TextToSpeech,
        RestProvider,
        Brightness
    ]
})
export class AppModule {}
